const mg = require("./db");

const userSchema = new mg.Schema({
    userId:{type:String},
    username:{type:String},
    password:{type:String},
    vip:{type:Number},        // 0，1，2，3，4，5
    tel:{type:String},
    code:{type:String},
    photo:{type:String},
    hobby:{type:Array},
    birthday:{type:Number},
    regTime:{type:Number},
    lastTime:{type:Number}
})

module.exports = mg.model("user", userSchema);
